from django.db import models

# 定义抽象基类
class AbstractModel(models.Model):
    # 逻辑删除
    is_delete = models.BooleanField(default=False)
    # 创建时间
    create_time = models.DateTimeField(auto_now_add=True)
    # 更新时间
    update_time = models.DateTimeField(auto_now=True)

    class Meta:
        abstract =  True
